import service from ".";

const ModelsApi={
    //发送axios请求
//添加
insert(models){
      //发送axios请求
   return service.post('admin/models', models);
},
//删除
delete(mid) {
    return service.delete(`admin/models/${mid}`);
},
//修改
update(models){
    //发送axios请求
 return service.put('admin/models', models);
},
//查询所有
selectAll(){
    //发送axios请求
 return service.get('admin/models');
},
//根据id进行查询
selectByMid(mid) {
    return service.get(`admin/models/${mid}`);
}
};

export default ModelsApi;